CPPFLAGS := -g -Werror -Wall -O0 -Wno-unused-variable -std=c++11 
LDFLAGS := -lmemcached -libverbs -pthread

inc := client.h net.h memtool.h ../shared.h
src := sample.cpp net.cpp client.cpp

.PHONY: clean all

client: $(src) $(inc)
	g++ -o $@ $^ $(LDFLAGS) $(CPPFLAGS)

clean:
	rm -rf *.o client